<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/user/common.jsp"%>
<%
	boolean add = commonCompanyRoleService.checkHasAction(request,ActionCodeConstants.COMPANY_USER_USER_ADD); 
	boolean del = commonCompanyRoleService.checkHasAction(request,ActionCodeConstants.COMPANY_USER_USER_DELETE); 
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>配网数据-单位成员管理</title>
<link href="<%=basePath %>user/css/style.css" rel="stylesheet" type="text/css" />
<link href="<%=basePath %>user/css/llcss.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="<%=basePath %>js/jquery/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<%=basePath %>js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/common.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/hd_ll.js"></script>
<script type="text/javascript" src="<%=basePath %>user/js/register.js"></script>
<script type="text/javascript" src="<%=basePath %>user/m/js/companyuserlist.js"></script>
<script type="text/javascript" src="<%=basePath %>js/ajaxfileupload.js"></script>
<script type="text/javascript">
var candel=<%=del%>;
</script>
</head>
<body bgcolor="white">
<div id="excelAddBox" class="add_members_box" style="display: none;width: 435px;">
	<div class="add_members_box_title">
		批量导入
		<img src="<%=basePath %>user/images/add_members_close.jpg" alt="" class="close" style="left: 405px;" />
	</div>
	<div id="dh" style="overflow: auto;">
	<div class="info_revise" style="padding-bottom:0px">
		<ul>
			<li>
				<!-- <input type="text" style="height:30px;width:200px;padding:0px 15px;" id="data_imp_file_text" class="file_text">
				<input type="button" style="height:30px; width:60px" id="data_imp_file_select" class="btn" value="选择" onclick="document.getElementById('userFile').click();" /> -->
				<input type="file" name="userFile" id="userFile"  />&nbsp;&nbsp;&nbsp;&nbsp;<a  style="text-decoration: underline;" href="<%=basePath %>template/单位人员导入模板.xlsx">下载导入模板</a></li>
		</ul>
	</div>
    <div class="complete_box_submit"><input class="complete_submit" type="button" onclick="batchadd();" value="导入" /></div>
    <!-- 添加成员列表内容_begin -->
	<div class="add_members_cont_box" style="display: none">
		<div class="add_members_cont_title">
			<ul class="add_members_cont_title_ul">
				<li class="number" style="width: 8%">序号</li>
				<li class="username" style="width: 27%">用户名</li>
				<li class="tel_num" style="width: 20%">手机号码</li>
				<li class="checked" style="width: 20%">姓名</li>
				<li class="checked" style="width: 25%">错误信息</li>
			</ul>
		</div>
		<!-- 成员列表_begin -->
		<div id="errorContent">
			
		</div>
		<!-- 成员列表_end -->
	</div>
	<!-- 添加成员列表内容_end -->
	</div>
</div>
<div id="addUserBox" class="add_members_box" style="display: none">
	<div class="add_members_box_title">
		添加成员
		<img src="<%=basePath %>user/images/add_members_close.jpg" alt="" class="close" />
	</div>
	<div class="info_revise" style="padding-bottom:0px">
		<ul>
			<li><span>用户名：</span>
				<input type="text" name="loginName" id="loginName" class="user_name" maxlength="20" style="width: 250px" value="" /></li>
			<li><span>手机号码：</span>
				<input type="text" name="mobile" id="mobile" class="user_name" maxlength="11" style="width: 250px" value="" /></li>
			<li><span>姓名：</span>
				<input type="text" name="userName" id="userName" class="user_name" maxlength="20" style="width: 250px" value="" />
			</li>
		</ul>
	</div>
    <div class="complete_box_submit"><input class="complete_submit" type="button" onclick="addUser();" value="完 成" /></div>
</div>
	<%@ include file="/user/head.jsp"%>
	<div class="pwsj_cont_box">
		<%@ include file="/user/left.jsp"%>
		<div class="pwsj_cont_right_box">
		<%if(companyUser!=null) {%>
		<div class="members_manage">
			<div class="pwsj_right_czrz_title" style="margin-bottom:3px">单位成员管理</div>
			<%if(add||isSuper){ %><div class="add_member" onclick="addShow();" style="float: left;">添加成员</div>
			<div class="add_member" onclick="excelShow();" style="float: left;margin-left: 30px;">批量导入</div><%} %>
			<div class="clear"></div>
			<div class="pwsj_right_czrz_cont_title">
				<ul class="czrz_title_ul">
					<li class="number" style="width: 5%">序号</li>
					<li class="time" style="width: 25%">用户名</li>
					<li class="operation" style="width: 20%">手机号码</li>
					<li class="username" style="width: 25%">姓名</li>
					<li class="username" style="width: 20%">操作</li>
				</ul>				
			</div>
			<div id="content">
			</div>
		</div>
		<!-- 分页_begin -->
		<div class="page">
	            <a >首页</a>
	            <a >上一页</a>
	            <a class="intro" >1</a>
	            <a >下一页</a>
	            <a >末页</a>
	    </div>
	    <!-- 分页_end -->
		<%} %>
		</div>
		<!--main_right end-->
		<div class="clear"></div>
	</div>
	<!--main end-->
	<%@ include file="/user/foot.jsp"%>
</body>
</html>